package my.rpc.spring;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

/**
 * 初始化自定义xml，将各个子标签和解析类对应
 * @author fengbo
 * @date 2017/11/15
 */
public class NettyRpcNamespaceHandler extends NamespaceHandlerSupport {

    @Override
    public void init() {
        registerBeanDefinitionParser("registry", new RegistryParser());
        registerBeanDefinitionParser("reference", new ReferenceParser());
    }
}
